package com.bawei.module_main.adapter

import androidx.coordinatorlayout.widget.CoordinatorLayout
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter

/**
 * @Author : yaotianxue
 * @Time : On 2023/5/27 08:18
 * @Description : MainPagerAdapter
 * //FragmentManager fm,
@Behavior int behavior
 */
class MainPagerAdapter(var list:List<Fragment>,var fm:FragmentManager,var behavior:Int):FragmentPagerAdapter(fm,behavior) {
    override fun getCount(): Int {
        return list.size
    }

    override fun getItem(position: Int): Fragment {
        return list.get(position)
    }
}